<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>编辑角色</title>
</head>
<body>
<h2>编辑角色</h2>
<!--<form action="/RoleController/roles/[[${role.id}]]" method="post">-->

    <form th:action="@{/RoleController/roles/{id}(id=${role.id})}" method="post">
    <div>
        <label for="roleName">角色名称:</label>
        <input type="text" id="roleName" name="roleName" th:value="${role.roleName}" required>
    </div>
    <div>
        <label for="description">描述:</label>
        <textarea id="description" name="description" th:text="${role.description}"></textarea>
    </div>
    <button type="submit">更新</button>
</form>
</body>
</html>